<template>
  <el-image :src="imgsrc" class="img-container">
    <div slot="error" class="image-slot">
      <img src="./head.jpg" alt="">
    </div>
  </el-image>
</template>

<script>
export default {
  props: {
    imgsrc: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="scss" scoped>
.img-container {
  border-radius: 50%;

  img {
    width: 100%;
  }
}
</style>
